package demo5;

public class Bank {
    public void getMoney(int out) throws BankException {
        if (out % 100 != 0) {
            throw new BankException("输入的数值有误");
        } else {
            System.out.println("提款成功");
        }
    }
}
